#!/bin/bash

# 测试Coordinator服务器的脚本

echo "🧪 开始测试Motor Coordinator Server..."

# 检查conda环境
if ! command -v conda &> /dev/null; then
    echo "❌ Conda 未安装"
    exit 1
fi

# 激活motor环境
echo "🔧 激活conda motor环境..."
source ~/miniconda3/etc/profile.d/conda.sh
conda activate motor

# 检查依赖
echo "📦 检查测试依赖..."
pip install httpx

# 设置环境变量
export PYTHONPATH="${PYTHONPATH}:$(pwd)"

# 运行测试
echo "🚀 运行测试脚本..."
python test_coordinator_server.py

echo "✅ 测试完成"
